package com.lwm.mapper;

import com.lwm.domain.FactoryDetail;
import com.lwm.domain.FactoryModeling;
import com.lwm.dto.FactoryModelingDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工厂建模数据层
 */
public interface FactoryModelingMapper {

    /**
     * 插入
     *
     * @param factoryModeling 工厂建模
     * @return int
     */
    int insert(FactoryModeling factoryModeling);

    /**
     * 根据id删除
     *
     * @param factoryIds id集合
     * @return int
     */
    int deleteByIds(@Param("factoryIds") List<Long> factoryIds);

    /**
     * 更新
     *
     * @param factoryModeling 工厂建模
     * @return int
     */
    int update(FactoryModeling factoryModeling);

    /**
     * 查询所有
     *
     * @param factoryModeling 工厂建模
     * @return {@link List}<{@link FactoryModelingDto}>
     */
    // List<FactoryModeling> selectAll(FactoryModeling factoryModeling);
    List<FactoryModelingDto> selectAll(FactoryModeling factoryModeling);

    /**
     * 根据id查询
     *
     * @param id id
     * @return {@link FactoryModelingDto}
     */
    FactoryModelingDto selectById(Long id);
}
